//
//  THColorHeader.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#ifndef THColorHeader_h
#define THColorHeader_h
#import "THAppEnvManager.h"

#define RGB(r,g,b)          [UIColor colorWithRed:(r)/255.f \
                                            green:(g)/255.f \
                                             blue:(b)/255.f \
                                            alpha:1.f]

#define RGBA(r,g,b,a)       [UIColor colorWithRed:(r)/255.f \
                                            green:(g)/255.f \
                                             blue:(b)/255.f \
                                            alpha:(a)]

#define ColorFromHex(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]


//文字常用色
#define Color_text_C5   ColorFromHex(0XC5C5C5)
#define Color_text_B2   ColorFromHex(0XB2B2B2)
#define Color_text_99   ColorFromHex(0X999999)
#define Color_text_66   ColorFromHex(0X666666)
#define Color_text_33   ColorFromHex(0X333333)
#define Color_text_00   ColorFromHex(0X000000)

//分割线颜色
#define Color_separator_ed ColorFromHex(0XEDEDED)
 //主题色
#define kThemeColor  ([THAppEnvManager shareManager].themeColor?:ColorFromHex(0XAD61FE))
//公聊区
#define Color_public_nickName kThemeColor

#endif /* THColorHeader_h */
